package com.ruoyi.common.core.flashpay.constant;

public class CacheKey {
    private static final String COUPON_KEY = "coupon:";

    private static final String PROJECT_KEY="flashPay:";

    private static final String USER_COUPON_KEY="couponRecord:";

    public static String getCouponKey(Long couponId){
        return PROJECT_KEY+COUPON_KEY+couponId;
    }

    public static String getCouponRecordKey(Long userId){
        return PROJECT_KEY+USER_COUPON_KEY+userId;
    }

}
